package cn.bkw.ytkapi.utils;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;


public class Base {



    public Map<String, String> session2map(HttpServletRequest req) {
        Map<String, String> map = new HashMap<String, String>();
        HttpSession session = req.getSession();
        map.put("sessionid", session.getAttribute("sessionid").toString());
        map.put("uid", session.getAttribute("uid").toString());
        return map;
    }

}
